package HolaMundo;
public class HolaMundo extends Thread {
	AdiosMundo a1 = new AdiosMundo();	
	public void run () {
		a1.start();
		synchronized(a1) {
			try{                
                a1.wait();  
                System.out.println(a1.msg);
            }catch(InterruptedException e){
                e.printStackTrace();
            }
			System.out.println("Hola Mundo");
		}
	}
}
